# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=corepdf
pkgver=4.3.0
pkgrel=0
pkgdesc="A PDF viewer from C-Suite"
# limited by qt6-qtwebengine
arch="aarch64 armv7 x86 x86_64"
url="https://gitlab.com/cubocore"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="qt5-qtbase-dev qt5-qtwebengine-dev libcprime-dev poppler-qt5-dev cmake ninja"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/cubocore/corepdf/-/archive/v$pkgver/corepdf-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check"

build() {
	cmake -B build \
		-GNinja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
ca9fb7c9e373067f1c1dcbd0aa99e59480edd46784b63d584ccd6112aa58d1b74b96e2dac83a4088472732808b9131cfb3667eca7b572f09fe70902d8cdbf7ce  corepdf-4.3.0.tar.gz
"
